package com.tan.androidtest.java;

/**
 * 测试Iterator
 */

public class TestIterator {

    public static void main(String[] args) {
//        List<String> list = new ArrayList<>();
//        list.add("1");
//        list.add("1");
//        list.add("1");
//        list.add("1");
//        list.add("1");
//        list.add("1");
//
////        Iterator<String> iterator = list.iterator();
////        while (iterator.hasNext()) {
////            String str = iterator.next();
////            iterator.remove();
////        }
//
//        for (String s : list) {
//            list.remove(s);
//        }
//        System.out.println("==-- " + list.size());


        float x = 20, y = 5;

        System.out.println(x + y + "" + (x + y) + y);
        System.out.println(x + "" + y);

        System. out. println(10 % 3 * 2);


        if(1==1 & 2!=3){

        }
    }


}
